package com.han.hotelplat.pojo.systemuser;

import java.util.ArrayList;
import java.util.List;
/**
 * TbResource entity. @author MyEclipse Persistence Tools
 */

public class Resource implements java.io.Serializable {

	// Fields

	/**   
		 *   
		 */   
		
	private static final long serialVersionUID = 1L;
	private Integer resid;
	private String restype;
	private String resname;
	private String relationid;
	//关联的用户
    private List<Systemuser> users = new ArrayList<Systemuser>();

	// Constructors

	

	/** default constructor */
	public Resource() {
	}

	/** full constructor */
	public Resource(String restype, String resname, String relationid) {
		this.restype = restype;
		this.resname = resname;
		this.relationid = relationid;
	}

	// Property accessors

	public Integer getResid() {
		return this.resid;
	}

	public void setResid(Integer resid) {
		this.resid = resid;
	}

	public String getRestype() {
		return this.restype;
	}

	public void setRestype(String restype) {
		this.restype = restype;
	}

	public String getResname() {
		return this.resname;
	}

	public void setResname(String resname) {
		this.resname = resname;
	}

	public String getRelationid() {
		return this.relationid;
	}

	public void setRelationid(String relationid) {
		this.relationid = relationid;
	}

	public List<Systemuser> getUsers() {
		return users;
	}

	public void setUsers(List<Systemuser> users) {
		this.users = users;
	}
}